<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml" xmlns:shiro="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="UTF-8">
	<title>司机管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta http-equiv="Access-Control-Allow-Origin" content="*">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<!--<link rel="icon" href="/favicon.ico">-->
	<link rel="stylesheet" href="/css/public.css" media="all" />
	<div th:include="/common/layui"></div>
	<style type="text/css">
		#diverFrm .layui-form-item .layui-input-inline{
			width:300px;
		}
		#showOrderDiv .layui-form-item {
			margin-bottom: 0px;
		}
		#showOrderDiv .layui-form-label {
			width: 132px;
		}
		#addOrUpdateDiv .layui-form-label {
			width: 132px;
		}
		#showOrderDiv .layui-input-inline {
			width: 230px;
		}


	</style>
</head>
<body class="childrenBody" shiro:hasPermission="driver:view">
<!-- 查询条件开始 -->
<!--<fieldset class="layui-elem-field layui-field-title" style="margin-top: 5px;">
	<legend>查询条件</legend>
</fieldset>-->
<blockquote class="layui-elem-quote">
	<form action="" method="post" id="searchFrm" lay-filter="searchFrm" class="layui-form layui-form-pane">
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">服务状态</label>
				<div class="layui-input-inline">
					<select name="servers_status" lay-verify="order_status">
						<option value="">All</option>
						<option value="0">Suspend</option>
						<option value="1">Effective</option>
					</select>
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">driver_id</label>
				<div class="layui-input-inline">
					<input type="text" name="driver_id"    autocomplete="off" class="layui-input" placeholder="">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">server_credit_earned</label>
				<div class="layui-input-inline">
					<input type="text" name="server_credit_earned"    autocomplete="off" class="layui-input" placeholder="司机信用 由游客对司机的评价">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">server_credit_point</label>
				<div class="layui-input-inline">
					<input type="text" name="server_credit_point"    autocomplete="off" class="layui-input" placeholder="司机的积分">
				</div>
			</div>

			<div class="layui-inline">
				<label class="layui-form-label">car_brand</label>
				<div class="layui-input-inline">
					<input type="text" name="car_brand"    autocomplete="off" class="layui-input" placeholder="车-品牌">
				</div>
			</div>


			<div class="layui-inline">
				<label class="layui-form-label">car_plate</label>
				<div class="layui-input-inline">
					<input type="text" name="car_plate"    autocomplete="off" class="layui-input" placeholder="车牌号">
				</div>
			</div>


			<div class="layui-inline">
				<label class="layui-form-label">car_year</label>
				<div class="layui-input-inline">
					<input type="text" name="car_year"    autocomplete="off" class="layui-input" placeholder="车龄">
				</div>
			</div>


			<div class="layui-inline">
				<label class="layui-form-label">car_fuel</label>
				<div class="layui-input-inline">
					<input type="text" name="car_fuel"    autocomplete="off" class="layui-input" placeholder="燃油、油耗">
				</div>
			</div>


			<div class="layui-inline">
				<label class="layui-form-label">car_cost</label>
				<div class="layui-input-inline">
					<input type="text" name="car_cost"    autocomplete="off" class="layui-input" placeholder="每公里的用车成本">
				</div>
			</div>


			<div class="layui-inline">
				<label class="layui-form-label">car_seat</label>
				<div class="layui-input-inline">
					<input type="text" name="car_seat"    autocomplete="off" class="layui-input" placeholder="车的座位数量">
				</div>
			</div>


			<div class="layui-inline">
				<label class="layui-form-label">car_km</label>
				<div class="layui-input-inline">
					<input type="text" name="car_km"    autocomplete="off" class="layui-input" placeholder="公里数">
				</div>
			</div>


			<div class="layui-inline">
				<label class="layui-form-label">driver_lic</label>
				<div class="layui-input-inline">
					<input type="text" name="driver_lic"    autocomplete="off" class="layui-input" placeholder="驾照号">
				</div>
			</div>





			<div class="layui-inline">
				<label class="layui-form-label">bus_driver_lic</label>
				<div class="layui-input-inline">
					<input type="text" name="bus_driver_lic"    autocomplete="off" class="layui-input" placeholder="大巴车驾照">
				</div>
			</div>


			<div class="layui-inline">
				<label class="layui-form-label">insur_type</label>
				<div class="layui-input-inline">
					<input type="text" name="insur_type"    autocomplete="off" class="layui-input" placeholder="保险类型">
				</div>
			</div>




			<div class="layui-inline">
				<label class="layui-form-label">reject</label>
				<div class="layui-input-inline">
					<input type="text" name="reject"    autocomplete="off" class="layui-input" placeholder="驳回原因">
				</div>
			</div>


			<div class="layui-inline">
				<label class="layui-form-label" style="width: 144px;">驳回时间范围</label>
				<div class="layui-input-inline" style="width: 290px;">
					<input type="tel" name="reject_time_select" id="reject_time_select" readonly="readonly" placeholder="请选择驳回时间范围" class="layui-input">
				</div>
			</div>
            <div class="layui-inline">
                <label class="layui-form-label" style="width: 144px;">insur_expired</label>
                <div class="layui-input-inline" style="width: 290px;">
                    <input type="tel" name="insur_expired_select" id="insur_expired_select" readonly="readonly" placeholder="保险过期时间范围" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label" style="width: 144px;">driver_lic_expired</label>
                <div class="layui-input-inline" style="width: 290px;">
                    <input type="tel" name="driver_lic_expired_select" id="driver_lic_expired_select" readonly="readonly" placeholder="驾照过期时间范围" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label" style="width: 144px;">bus_driver_lic_expired_select</label>
                <div class="layui-input-inline" style="width: 290px;">
                    <input type="tel" name="bus_driver_lic_expired_select" id="bus_driver_lic_expired_select" readonly="readonly" placeholder="大巴车驾照过期时间范围" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
				<button type="button" class="layui-btn" lay-submit="" lay-filter="doSearch"><span class="layui-icon layui-icon-search"></span>查询</button>
				<button type="reset" class="layui-btn layui-btn-warm"><span class="layui-icon layui-icon-refresh-1"></span>重置</button>
            </div>
			<!--<div class="layui-inline">
				<label class="layui-form-label">结束时间</label>
				<div class="layui-input-inline">
					<input type="tel" name="endTime"  id="endTime"  readonly="readonly" placeholder="yyyy-MM-dd HH:mm:ss" class="layui-input">
				</div>
			</div>-->
		</div>
		<!--<div class="layui-form-item">
			<div class="layui-input-block" style="text-align: center;">

			</div>
		</div>-->
	</form>
</blockquote>
<!-- 查询条件结束-->


<!-- 数据表格开始 -->
<div id="guestOrder">
	<table class="layui-hide" id="driverListTable" lay-filter="driverListTable"></table>
	<div id="noticeToolBar" style="display: none;">
		<!--<button type="button" lay-event="add" class="layui-btn layui-btn-sm" shiro:hasPermission="driver:add"><span class="layui-icon layui-icon-add-1"></span>添加</button>-->
		<button type="button" lay-event="batchDelete" class="layui-btn layui-btn-sm layui-btn-danger" shiro:hasPermission="driver:batchdelete"><span class="layui-icon layui-icon-delete"></span>批量删除</button>
	</div>

	<div id="noticeRowBar" style="display: none;">
		<button type="button" lay-event="update" class="layui-btn layui-btn-sm" shiro:hasPermission="driver:update"><span class="layui-icon layui-icon-edit"></span>修改</button>
		<button type="button" lay-event="showOrder" class="layui-btn layui-btn-sm" shiro:hasPermission="driver:view"><span class="layui-icon layui-icon-about"></span>查看</button>
		<button type="button" lay-event="delete" class="layui-btn layui-btn-sm layui-btn-danger" shiro:hasPermission="driver:delete"><span class="layui-icon layui-icon-delete"></span>删除</button>
	</div>
</div>
<!-- 数据表格结束 -->


<!-- 竞拍参与人列表弹出层开始 -->
<div style="display: none;padding: 5px" id="auctionListPage">
    <table class="layui-hide" id="auctionListTable" lay-filter="auctionListTable"></table>

    <div id="auctionListRowBar" style="display: none;">
        <button type="button" lay-event="selectThisAution" class="layui-btn layui-btn-sm"><span class="layui-icon layui-icon-circle"></span>选中</button>
    </div>
</div>
<!-- 竞拍参与人列表弹出层结束 -->

<!-- 服务人员信息弹出层开始 -->
<div style="display: none;padding: 5px" id="showDiverPage">
	<form action="" method="post" class="layui-form layui-form-pane" id="diverFrm" lay-filter="diverFrm">

		<div class="layui-form-item">

			<div class="layui-inline">
				<label class="layui-form-label">服务人姓名</label>
				<div class="layui-input-inline">
					<input type="hidden" name="user_id">
					<input type="hidden" name="driver_id">
					<input type="hidden" name="carrier_id">
					<input type="text" name="avatar" lay-verify="required" autocomplete="off" placeholder="请输入服务人姓名" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">服务人电话</label>
				<div class="layui-input-inline">
					<input type="text" name="phone" lay-verify="required" autocomplete="off" placeholder="请输入服务人联系电话" class="layui-input">
				</div>
			</div>

		</div>



		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">分类</label>
				<div class="layui-input-inline">
					<select name="role_id" lay-filter="" disabled="disabled">
						<option value="4">司机</option>
						<option value="3">承运商</option>
					</select>
				</div>
			</div>
			<div class="layui-inline">
				<button type="button" class="layui-btn layui-btn-normal"><span class="layui-icon layui-icon-search"></span> 搜索选择</button>
			</div>

		</div>

		<!--司机信息-->
		<div class="dirver-info" style="display: none">
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">驾照号</label>
					<div class="layui-input-inline">
						<input type="text" name="driver_lic" lay-verify="required" autocomplete="off" placeholder="请点击搜索选择" disabled="disabled" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">驾照过期日</label>
					<div class="layui-input-inline">
						<input type="text" name="driver_lic_expired" lay-verify="required" autocomplete="off" placeholder="请点击搜索选择" disabled="disabled" class="layui-input">
					</div>
				</div>

			</div>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">车牌号</label>
					<div class="layui-input-inline">
						<input type="text" name="car_plate" lay-verify="required" autocomplete="off" placeholder="请点击搜索选择" disabled="disabled" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">保险过期日</label>
					<div class="layui-input-inline">
						<input type="text" name="insur_expired" lay-verify="required" autocomplete="off" placeholder="请点击搜索选择" disabled="disabled" class="layui-input">
					</div>
				</div>

			</div>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">车品牌</label>
					<div class="layui-input-inline">
						<input type="text" name="car_brand" lay-verify="required" autocomplete="off" placeholder="请点击搜索选择" disabled="disabled" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">座位数量</label>
					<div class="layui-input-inline">
						<input type="text" name="car_seat" lay-verify="required" autocomplete="off" placeholder="请点击搜索选择" disabled="disabled" class="layui-input">
					</div>
				</div>
			</div>


			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">归属承运商</label>
					<div class="layui-input-inline">
						<input type="text" name="carrier_name" lay-verify="required" autocomplete="off" placeholder="请点击搜索选择" disabled="disabled" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">信用积分</label>
					<div class="layui-input-inline">
						<input type="text" name="server_credit_earned" lay-verify="required" autocomplete="off" placeholder="请点击搜索选择" disabled="disabled" class="layui-input">
					</div>
				</div>
			</div>
		</div>

		<!--承运商信息-->
		<div class="carrier-info" style="display: none">

			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">承运商名称</label>
					<div class="layui-input-inline">
						<input type="text" name="carrier_name" lay-verify="required" autocomplete="off" placeholder="请点击搜索选择" disabled="disabled" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">营业执照</label>
					<div class="layui-input-inline">
						<input type="text" name="carrier_lic" lay-verify="required" autocomplete="off" placeholder="请点击搜索选择" disabled="disabled" class="layui-input">
					</div>
				</div>
			</div>

			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">执照过期日</label>
					<div class="layui-input-inline">
						<input type="text" name="carrier_lic_expired" lay-verify="required" autocomplete="off" placeholder="请点击搜索选择" disabled="disabled" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">信用积分</label>
					<div class="layui-input-inline">
						<input type="text" name="server_credit_earned" lay-verify="required" autocomplete="off" placeholder="请点击搜索选择" disabled="disabled" class="layui-input">
					</div>
				</div>
			</div>
		</div>


		<!--<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">信用积分</label>
				<div class="layui-input-inline">
					<input type="text" name="server_credit_earned" lay-verify="required" autocomplete="off" placeholder="请点击搜索选择" disabled="disabled" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">

			</div>
		</div>-->

		<div class="layui-form-item">
			<div class="layui-input-block" style="text-align: center;margin: 30px 0 0 0;">
				<button type="button" class="layui-btn" lay-submit="" id="doSubmit2" ><span class="layui-icon layui-icon-add-1"></span>确认</button>
				<button type="reset" class="layui-btn layui-btn-warm"><span class="layui-icon layui-icon-refresh-1"></span>重置</button>
				<button type="button" class="layui-btn layui-btn-normal"><span class="layui-icon layui-icon-close"></span>取消</button>
			</div>
		</div>
	</form>
</div>
<!-- 服务人员信息弹出层结束 -->



<!-- 添加和修改的弹出层开始 -->
<div style="display: none;padding: 5px" id="addOrUpdateDiv">
	<form action="" method="post" class="layui-form layui-form-pane" id="dataFrm" lay-filter="dataFrm">
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">servers_status</label>
				<div class="layui-input-inline">
					<input type="hidden" name="user_id"  lay-verify=""  autocomplete="off" placeholder="" class="layui-input" disabled>
					<input type="hidden" name="order_id"  lay-verify=""  autocomplete="off" placeholder="" class="layui-input" disabled>
					<div class="layui-input-inline">
						<!--<select name="servers_status" lay-verify="order_status" disabled>
                            <option value="">All</option>
                            <option value="0">Suspend</option>
                            <option value="1">Effective</option>
                        </select>-->
						<input type="text" name="servers_status"    autocomplete="off" class="layui-input" placeholder="">
					</div>
				</div>
			</div>

			<div class="layui-inline">
				<label class="layui-form-label">carrier_name</label>
				<div class="layui-input-inline">
					<input type="text" name="carrier_name"  lay-verify=""  autocomplete="off" placeholder="归属承运商 后续修改为点击选择" class="layui-input" disabled>
					<input type="hidden" name="carrier_id"  lay-verify=""  autocomplete="off" placeholder="" class="layui-input" disabled>
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">server_credit_point</label>
				<div class="layui-input-inline">
					<input type="text" name="server_credit_point"  lay-verify=""  autocomplete="off" placeholder="司机的积分" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">server_credit_earned</label>
				<div class="layui-input-inline">
					<input type="text" name="server_credit_earned"  lay-verify=""  autocomplete="off" placeholder="司机信用 由游客对司机的评价" class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">car_brand</label>
				<div class="layui-input-inline">
					<input type="text" name="car_brand"  lay-verify=""  autocomplete="off" placeholder="车-品牌" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">car_km</label>
				<div class="layui-input-inline">
					<input type="text" name="car_km"  lay-verify=""  autocomplete="off" placeholder="公里数" class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">car_plate</label>
				<div class="layui-input-inline">
					<input type="text" name="car_plate"  lay-verify=""  autocomplete="off" placeholder="车牌号" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">car_year</label>
				<div class="layui-input-inline">
					<input type="text" name="car_year"  lay-verify=""  autocomplete="off" placeholder="车龄" class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">car_fuel</label>
				<div class="layui-input-inline">
					<input type="text" name="car_fuel"  lay-verify=""  autocomplete="off" placeholder="燃油  油耗" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">car_cost</label>
				<div class="layui-input-inline">
					<input type="text" name="car_cost"  lay-verify=""  autocomplete="off" placeholder="每公里的用车成本" class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">car_seat</label>
				<div class="layui-input-inline">
					<input type="text" name="car_seat"  lay-verify=""  autocomplete="off" placeholder="车的座位数量" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">car_type</label>
				<div class="layui-input-inline">
					<input type="text" name="car_type"  lay-verify=""  autocomplete="off" placeholder="车-类型" class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">driver_lic</label>
				<div class="layui-input-inline">
					<input type="text" name="driver_lic"  lay-verify=""  autocomplete="off" placeholder="驾照号" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">driver_lic_expired</label>
				<div class="layui-input-inline">
					<input type="text" name="driver_lic_expired"  lay-verify=""  autocomplete="off" placeholder="驾照过期日" class="layui-input">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">driver_lic_img1</label>
				<div class="layui-input-inline">
					<input type="text" name="driver_lic_img1"  lay-verify=""  autocomplete="off" placeholder="驾照照片1" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">driver_lic_img2</label>
				<div class="layui-input-inline">
					<input type="text" name="driver_lic_img2"  lay-verify=""  autocomplete="off" placeholder="驾照照片2" class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">bus_driver_lic</label>
				<div class="layui-input-inline">
					<input type="text" name="bus_driver_lic"  lay-verify=""  autocomplete="off" placeholder="大巴车驾照" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">bus_driver_lic_expired</label>
				<div class="layui-input-inline">
					<input type="text" name="bus_driver_lic_expired"  lay-verify=""  autocomplete="off" placeholder="大巴车驾照 证件过期日" class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">bus_driver_img1</label>
				<div class="layui-input-inline">
					<input type="text" name="bus_driver_img1"  lay-verify=""  autocomplete="off" placeholder="大巴车驾照照片1" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">bus_driver_img2</label>
				<div class="layui-input-inline">
					<input type="text" name="bus_driver_img2"  lay-verify=""  autocomplete="off" placeholder="大巴车驾照照片2" class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">insur_type</label>
				<div class="layui-input-inline">
					<input type="text" name="insur_type"  lay-verify=""  autocomplete="off" placeholder="保险类型" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">insur_expired</label>
				<div class="layui-input-inline">
					<input type="text" name="insur_expired"  lay-verify=""  autocomplete="off" placeholder="保险过期日" class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">insur_img1</label>
				<div class="layui-input-inline">
					<input type="text" name="insur_img1"  lay-verify=""  autocomplete="off" placeholder="保险照片1" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">insur_img2</label>
				<div class="layui-input-inline">
					<input type="text" name="insur_img2"  lay-verify=""  autocomplete="off" placeholder="保险照片2" class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">

			<div class="layui-inline">
				<label class="layui-form-label">reject_time</label>
				<div class="layui-input-inline">
					<input type="text" name="reject_time"  lay-verify=""  autocomplete="off" placeholder="驳回时间" class="layui-input">
				</div>
			</div>

			<div class="layui-inline">
				<label class="layui-form-label">reject</label>
				<div class="layui-input-inline">
					<input type="text" name="reject"  lay-verify=""  autocomplete="off" placeholder="驳回原因" class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">


		</div>
		<div class="layui-form-item">
			<div class="layui-input-block" style="text-align: center;margin-right: 110px;">
				<button type="button" class="layui-btn" lay-submit="" id="doSubmit" ><span class="layui-icon layui-icon-add-1"></span>提交</button>
				<!--<button type="reset" class="layui-btn layui-btn-warm"><span class="layui-icon layui-icon-refresh-1"></span>重置</button>-->
			</div>
		</div>
	</form>
</div>
<!-- 添加和修改的弹出层结束 -->





<!-- 查看弹出层的开始 -->
<div class="layui-form layui-form-pane" style="display: none;padding: 5px;" id="showOrderDiv">

	<!--<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">phone</label>
			<div class="layui-input-inline">
				<input type="text" name="phone"  lay-verify=""  autocomplete="off" placeholder="账号电话" class="layui-input" disabled>
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">suburb</label>
			<div class="layui-input-inline">
				<input type="text" name="suburb"  lay-verify=""  autocomplete="off" placeholder="家庭地址" class="layui-input" disabled>
			</div>
		</div>
	</div>-->


	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">servers_status</label>
			<div class="layui-input-inline">
				<input type="hidden" name="user_id"  lay-verify=""  autocomplete="off" placeholder="" class="layui-input" disabled>
				<div class="layui-input-inline">
					<!--<select name="servers_status" lay-verify="order_status" disabled>
						<option value="">All</option>
						<option value="0">Suspend</option>
						<option value="1">Effective</option>
					</select>-->
					<input type="text" name="servers_status"    autocomplete="off" class="layui-input" placeholder="">
				</div>
			</div>
		</div>

		<div class="layui-inline">
			<label class="layui-form-label">carrier_name</label>
			<div class="layui-input-inline">
				<input type="text" name="carrier_name"  lay-verify=""  autocomplete="off" placeholder="归属承运商 后续修改为点击选择" class="layui-input" disabled>
				<input type="hidden" name="carrier_id"  lay-verify=""  autocomplete="off" placeholder="" class="layui-input" disabled>
			</div>
		</div>
	</div>

	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">server_credit_point</label>
			<div class="layui-input-inline">
				<input type="text" name="server_credit_point"  lay-verify=""  autocomplete="off" placeholder="司机的积分" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">server_credit_earned</label>
			<div class="layui-input-inline">
				<input type="text" name="server_credit_earned"  lay-verify=""  autocomplete="off" placeholder="司机信用 由游客对司机的评价" class="layui-input">
			</div>
		</div>
	</div>

	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">car_brand</label>
			<div class="layui-input-inline">
				<input type="text" name="car_brand"  lay-verify=""  autocomplete="off" placeholder="车-品牌" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">car_km</label>
			<div class="layui-input-inline">
				<input type="text" name="car_km"  lay-verify=""  autocomplete="off" placeholder="公里数" class="layui-input">
			</div>
		</div>
	</div>

	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">car_plate</label>
			<div class="layui-input-inline">
				<input type="text" name="car_plate"  lay-verify=""  autocomplete="off" placeholder="车牌号" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">car_year</label>
			<div class="layui-input-inline">
				<input type="text" name="car_year"  lay-verify=""  autocomplete="off" placeholder="车龄" class="layui-input">
			</div>
		</div>
	</div>

	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">car_fuel</label>
			<div class="layui-input-inline">
				<input type="text" name="car_fuel"  lay-verify=""  autocomplete="off" placeholder="燃油  油耗" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">car_cost</label>
			<div class="layui-input-inline">
				<input type="text" name="car_cost"  lay-verify=""  autocomplete="off" placeholder="每公里的用车成本" class="layui-input">
			</div>
		</div>
	</div>

	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">car_seat</label>
			<div class="layui-input-inline">
				<input type="text" name="car_seat"  lay-verify=""  autocomplete="off" placeholder="车的座位数量" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">car_type</label>
			<div class="layui-input-inline">
				<input type="text" name="car_type"  lay-verify=""  autocomplete="off" placeholder="车-类型" class="layui-input">
			</div>
		</div>
	</div>

	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">driver_lic</label>
			<div class="layui-input-inline">
				<input type="text" name="driver_lic"  lay-verify=""  autocomplete="off" placeholder="驾照号" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">driver_lic_expired</label>
			<div class="layui-input-inline">
				<input type="text" name="driver_lic_expired"  lay-verify=""  autocomplete="off" placeholder="驾照过期日" class="layui-input">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">driver_lic_img1</label>
			<div class="layui-input-inline">
				<input type="text" name="driver_lic_img1"  lay-verify=""  autocomplete="off" placeholder="驾照照片1" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">driver_lic_img2</label>
			<div class="layui-input-inline">
				<input type="text" name="driver_lic_img2"  lay-verify=""  autocomplete="off" placeholder="驾照照片2" class="layui-input">
			</div>
		</div>
	</div>

	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">bus_driver_lic</label>
			<div class="layui-input-inline">
				<input type="text" name="bus_driver_lic"  lay-verify=""  autocomplete="off" placeholder="大巴车驾照" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">bus_driver_lic_expired</label>
			<div class="layui-input-inline">
				<input type="text" name="bus_driver_lic_expired"  lay-verify=""  autocomplete="off" placeholder="大巴车驾照 证件过期日" class="layui-input">
			</div>
		</div>
	</div>

	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">bus_driver_img1</label>
			<div class="layui-input-inline">
				<input type="text" name="bus_driver_img1"  lay-verify=""  autocomplete="off" placeholder="大巴车驾照照片1" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">bus_driver_img2</label>
			<div class="layui-input-inline">
				<input type="text" name="bus_driver_img2"  lay-verify=""  autocomplete="off" placeholder="大巴车驾照照片2" class="layui-input">
			</div>
		</div>
	</div>

	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">insur_type</label>
			<div class="layui-input-inline">
				<input type="text" name="insur_type"  lay-verify=""  autocomplete="off" placeholder="保险类型" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">insur_expired</label>
			<div class="layui-input-inline">
				<input type="text" name="insur_expired"  lay-verify=""  autocomplete="off" placeholder="保险过期日" class="layui-input">
			</div>
		</div>
	</div>

	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">insur_img1</label>
			<div class="layui-input-inline">
				<input type="text" name="insur_img1"  lay-verify=""  autocomplete="off" placeholder="保险照片1" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">insur_img2</label>
			<div class="layui-input-inline">
				<input type="text" name="insur_img2"  lay-verify=""  autocomplete="off" placeholder="保险照片2" class="layui-input">
			</div>
		</div>
	</div>

	<div class="layui-form-item">

		<div class="layui-inline">
			<label class="layui-form-label">reject_time</label>
			<div class="layui-input-inline">
				<input type="text" name="reject_time"  lay-verify=""  autocomplete="off" placeholder="驳回时间" class="layui-input">
			</div>
		</div>

		<div class="layui-inline">
			<label class="layui-form-label">reject</label>
			<div class="layui-input-inline">
				<input type="text" name="reject"  lay-verify=""  autocomplete="off" placeholder="驳回原因" class="layui-input">
			</div>
		</div>
	</div>

	<div class="layui-form-item">


	</div>


	<div id="show_content"></div>

</div>
<!-- 查看弹出层的结束-->


<!--<script type="text/javascript" src="/resources/layui/layui.js"></script>-->
<script type="text/javascript">
	layui.use(['jquery','form','table','layer','laydate','layedit'],function(){
		$=layui.jquery;
		var form=layui.form;
		var table=layui.table;
		var layer=layui.layer;
		var laydate=layui.laydate;
		var layedit=layui.layedit;
		//初始化时间选择器
		laydate.render({
			elem:'#reject_time_select',
			type:'datetime',
			range: true
		});
		laydate.render({
			elem:'#insur_expired_select',
			type:'datetime',
			range: true
		});
		laydate.render({
			elem:'#driver_lic_expired_select',
			type:'datetime',
			range: true
		});
		laydate.render({
			elem:'#bus_driver_lic_expired_select',
			type:'datetime',
			range: true
		});
		/*laydate.render({
			elem:'#endTime',
			type:'datetime'
		});*/

		//初始化富文本
		var editIndex = layedit.build('content');
		//加载 数据
		tableIns=table.render({
			elem: '#driverListTable'
			,url:'/admin/driver/loadAllDriverList'
			,method:'post'//接口http请求类型，默认：get
			,toolbar: '#noticeToolBar' //开启头部工具栏，并为其绑定左侧模板
			,title: '订单数据表'
			,height:'full-220'
			,page: true
			,loading:true//是否显示加载条（默认：true）。如果设置 false，则在切换分页时，不会出现加载条。该参数只适用于 url 参数开启的方式
			,cols: [ [
				{type: 'checkbox', fixed: 'left'}
				,{field:'user_id', title:'用户ID',align:'center',width:'60',hide:true}
				,{field:'status', title:'用户状态',align:'center',width:'60',hide:true}
				,{field:'old_status', title:'是否为合并旧用户',align:'center',width:'60',hide:true,templet:function(d){
						let oldStatusStr='否';
						if (d.old_status) {
							oldStatusStr='是';
						}
						return oldStatusStr;
					}}
				,{field:'phone', title:'phone',align:'center',width:'150'}
				,{field:'user_email', title:'user_email',align:'center',width:'200',hide:true}
				,{field:'role_id', title:'role_id',align:'center',width:'60',hide:true}
				,{field:'contact_num1', title:'contact_num1',align:'center',width:'60',hide:true}
				,{field:'car_plate', title:'car_plate',align:'center',width:'150',templet:function(d){
						let car_plateStr='';
						if (d.driver && d.driver.car_plate) {
							car_plateStr=d.driver.car_plate;
						}
						return car_plateStr;
					}}
				,{field:'driver_lic', title:'driver_lic',align:'center',width:'150',templet:function(d){
						let driver_licStr='';
						if (d.driver && d.driver.driver_lic) {
							driver_licStr=d.driver.driver_lic;
						}
						return driver_licStr;
					}}
				,{field:'bus_driver_lic', title:'bus_driver_lic',align:'center',width:'150',templet:function(d){
						let str='';
						if (d.driver && d.driver.bus_driver_lic) {
							str=d.driver.bus_driver_lic;
						}
						return str;
					}}

				,{field:'司机的积分', title:'司机的积分',align:'center',width:'150',templet:function(d){
						let str='0';
						if (d.driver && d.driver.server_credit_point) {
							str=d.driver.server_credit_point;
						}
						return str;
					}}
				,{field:'司机信用', title:'司机信用',align:'center',width:'150',templet:function(d){
						let str='0';
						if (d.driver && d.driver.server_credit_earned) {
							str=d.driver.server_credit_earned;
						}
						return str;
					}}
				,{field:'car_brand', title:'car_brand',align:'center',width:'150',templet:function(d){
						let str='';
						if (d.driver && d.driver.car_brand) {
							str=d.driver.car_brand;
						}
						return str;
					}}
				,{field:'car_type', title:'car_type',align:'center',width:'150',templet:function(d){
						let str='';
						if (d.driver && d.driver.car_type) {
							str=d.driver.car_type;
						}
						return str;
					}}
				,{field:'car_plate', title:'car_plate',align:'center',width:'150',templet:function(d){
						let str='';
						if (d.driver && d.driver.car_plate) {
							str=d.driver.car_plate;
						}
						return str;
					}}
				,{field:'car_year', title:'car_year',align:'center',width:'150',templet:function(d){
						let str='';
						if (d.driver && d.driver.car_year) {
							str=d.driver.car_year;
						}
						return str;
					}}
				,{field:'car_fuel', title:'car_fuel',align:'center',width:'150',templet:function(d){
						let str='';
						if (d.driver && d.driver.car_fuel) {
							str=d.driver.car_fuel;
						}
						return str;
					}}
				,{field:'car_cost', title:'car_cost',align:'center',width:'150',templet:function(d){
						let str='';
						if (d.driver && d.driver.car_cost) {
							str=d.driver.car_cost;
						}
						return str;
					}}
				,{field:'car_seat', title:'car_seat',align:'center',width:'150',templet:function(d){
						let str='';
						if (d.driver && d.driver.car_seat) {
							str=d.driver.car_seat;
						}
						return str;
					}}
				,{field:'car_km', title:'car_km',align:'center',width:'150',templet:function(d){
						let str='';
						if (d.driver && d.driver.car_km) {
							str=d.driver.car_km;
						}
						return str;
					}}
				,{field:'driver_lic_expired', title:'driver_lic_expired',align:'center',width:'150',templet:function(d){
						let str='';
						if (d.driver && d.driver.driver_lic_expired) {
							str=d.driver.driver_lic_expired;
						}
						return str;
					}}
				,{field:'bus_driver_lic_expired', title:'bus_driver_lic_expired',align:'center',width:'150',templet:function(d){
						let str='';
						if (d.driver && d.driver.bus_driver_lic_expired) {
							str=d.driver.bus_driver_lic_expired;
						}
						return str;
					}}
				,{field:'insur_expired', title:'insur_expired',align:'center',width:'150',templet:function(d){
						let str='';
						if (d.driver && d.driver.insur_expired) {
							str=d.driver.insur_expired;
						}
						return str;
					}}
				,{field:'insur_type', title:'insur_type',align:'center',width:'150',templet:function(d){
						let str='';
						if (d.driver && d.driver.insur_type) {
							str=d.driver.insur_type;
						}
						return str;
					}}
				,{field:'reject', title:'reject',align:'center',width:'150',templet:function(d){
						let str='';
						if (d.driver && d.driver.reject) {
							str=d.driver.reject;
						}
						return str;
					}}
				,{field:'reject_time', title:'reject_time',align:'center',width:'150',templet:function(d){
						let str='';
						if (d.driver && d.driver.reject_time) {
							str=d.driver.reject_time;
						}
						return str;
					}}
				,{field:'servers_status',fixed: 'right', title:'服务状态',align:'center',width:'150',templet:function(d){
						let str='<span style="color: #f4ba0f">Suspend-无效</span>';
						if (d.driver && d.driver.servers_status) {
							str = '<span style="color: #009688">Effective-有效</span>';
						}
						return str;
					}}


				,{field:'审批操作',fixed: 'right', title:'审批操作',align:'center',minWidth:'175',templet:function(d){
					let btn='<button type="button" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="EffectiveBtn" >Effective</button>';
					if (d.driver && d.driver.servers_status) {
						btn = '<button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="SuspendBtn">Suspend</button> ';
					}

					return btn;
				}}

				,{field:'操作',fixed: 'right', title:'操作', toolbar: '#noticeRowBar',align:'center',minWidth:'270'}
			] ]
		});

		//模糊查询
		form.on("submit(doSearch)",function(data){
			tableIns.reload({
				where:data.field,
				page:{
					curr:1
				}
			});
			return false;
		});

		//监听工具条的事件
		table.on("toolbar(driverListTable)",function(obj){
			switch(obj.event){
				case 'batchDelete':
					batchDelete();
					break;
				case 'add':
					openAddLayer();
					break;
			};
		});

		//监听行工具条的事件
		table.on("tool(driverListTable)",function(obj){
			var data = obj.data; //获得当前行数据
			let ajax_data = {};
			switch(obj.event){
				case 'update':
					openUpdateNoticeLayer(data);
					break;
				case 'delete':
					deleteOrder(data);
					break;
				case 'showOrder':
					showOrder(data);
					break;
				case 'EffectiveBtn':
					console.log("EffectiveBtn");
					ajax_data = {
						"user_id":data.user_id,
						"servers_status":1
					};
					changeServersStatus(ajax_data);
					break;

				case 'SuspendBtn':
					console.log("SuspendBtn");
					layer.prompt({title: '请输入该司机服务资质不合格的详细原因(此内容会邮件通知司机):', formType: 2}, function(text, index){
						layer.close(index);
						email_msg = text;
						//询问框
						layer.confirm('该司机服务资质不合格的详细原因为：<br><div style="color: #FF5722">'+ email_msg+'</div><br>是否修改并发送邮件通知司机?', {
							btn: ['修改并发送','取消'] //按钮
						}, function(){
							// layer.msg('提交成功');
							ajax_data = {
								"user_id":data.user_id,
								"servers_status":0,
								"email_msg":email_msg
							};
							changeServersStatus(ajax_data);
						});
					});
					break;

			};
		});

        //监听行工具条的事件
        table.on("tool(auctionListTable)",function(obj){
            switch(obj.event){
                case 'selectThisAution':
                    console.log("selectThisAution")
                    // openUpdateNoticeLayer(data);
                    break;
            };
        });


		var mainIndex;
		var url;
		//打开添加的弹出层
		function openAddLayer(){
			mainIndex=layer.open({
				type:1,
				content:$("#addOrUpdateDiv"),
				area:['800px','600px'],
				title:'新增订单',
				success:function(){
					$("#dataFrm")[0].reset();
					layedit.setContent(editIndex,"");
					url="/notice/addNotice";
				}
			});
		}

		//打开修改的弹出层
		function openUpdateNoticeLayer(data){
			let cHight = document.body.clientHeight - 300 + "px";
			console.log("cHight = " + cHight);
			console.log("dataFrm = " + dataFrm);
			mainIndex=layer.open({
				type:1,
				content:$("#addOrUpdateDiv"),
				area:['800px',cHight],
				title:'修改司机信息',
				success:function(){
					// $("#dataFrm")[0].reset();
					// //装载新的数据
					// form.val("dataFrm",data);
					// layedit.setContent(editIndex,data.content);
					// $("#dataFrm")[0].reset();
					showOrderInfo(data);
					url="/admin/driver/update";
				}
			});
		}
		//打开竞拍参与人列表弹出层
		function openLayerAuctionListPage(auctionList){
			let cHight = document.body.clientHeight - 500 + "px";
			cuctionListPage=layer.open({
				type:1,
				content:$("#auctionListPage"),
				area:['900px',cHight],
				title:'竞拍参与人列表',
				success:function(){

					var cuctionTableIns=table.render({
						elem: '#auctionListPage'
						,data:auctionList
						// ,url:'/admin/order/loadAllGuestOrder'
						// ,method:'post'//接口http请求类型，默认：get
						// ,toolbar: '#noticeToolBar' //开启头部工具栏，并为其绑定左侧模板
						,title: '参与订单竞拍的数据表'
						,height:'full-220'
						,page: {limit: 50}
						,loading:true//是否显示加载条（默认：true）。如果设置 false，则在切换分页时，不会出现加载条。该参数只适用于 url 参数开启的方式
						,cols: [ [
							// {type: 'checkbox', fixed: 'left'},
							{field:'auction_id', title:'ID',align:'center',width:'60'}
							,{field:'order_id', title:'订单ID',align:'center',minWidth:'87'}
							,{field:'server_user_name', title:'竞拍人',align:'center',minWidth:'87'}
							,{field:'auction_amount', title:'竞拍金额',align:'center',minWidth:'103',sort:true}
							,{field:'server_driver_phone', title:'竞拍人电话',align:'center',minWidth:'122'}
							,{field:'auction_add_time', title:'参与时间',align:'center',minWidth:'166'}
							,{field:'auction_update_time', title:'更新时间',align:'center',minWidth:'166'}
							// ,{fixed: 'right', title:'操作', toolbar: '#auctionListRowBar',align:'center',minWidth:'97'}
							,{fixed: 'right', title:'操作',align:'center',minWidth:'97',
                                templet:function(d){
							    let btn = '<button type="button" class="layui-btn layui-btn-sm" onclick=selectThisAution("'+d.auction_id+'","'+d.order_id+'","'+d.auction_amount+'","'+d.server_user_name+'","'+d.server_driver_phone+'")>' +
                                    '<span class="layui-icon layui-icon-circle"></span>选中' +
                                    '</button>';
                                    return btn;
                                }
						    }
						] ]
					});

				},
				cancel: function(index, layero){
					layer.close(index);
					$("[lay-id='auctionListPage']").remove();
					return false;
				}
			});
		}
		//打开服务人员确认信息弹出层
		function openLayerShowDiverPage(data){
			$(".carrier-info").hide();
			$(".dirver-info").hide();

			let showDiverPage=layer.open({
				type:1,
				content:$("#showDiverPage"),
				area:['900px','610px'],
				title:'服务人员信息确认表',
				success:function(){
					if(data){
						let role_id=data.servicePersonal.role_id;
						console.log(role_id)
						if(role_id == 3){
							$(".carrier-info").show();
						}
						if(role_id == 4){
							$(".dirver-info").show();
						}
						backfillData(data.servicePersonal);
						backfillData(data.servicePersonal.driver);
						backfillData(data.servicePersonal.carrier);
					}


					form.render();
				},
				cancel: function(index, layero){
					layer.close(index);
					$("[lay-id='showDiverPage']").remove();
					return false;
				}
			});
		}


		$("#doSubmit").click(function(){
			//同步富文本和textarea里面的内容
			layedit.sync(editIndex);
			var data=$("#dataFrm").serialize();
			$.post(url,data,function(res){
				if(res.code==200){
					tableIns.reload();
				}
				layer.msg(res.msg);
				layer.close(mainIndex);
			})
		})
		//删除
		function deleteOrder(data){
			layer.confirm('你确定要删除【'+data.phone+'】这条司机数据吗?', {icon: 3, title:'提示'}, function(index){
				$.post("/admin/driver/delete",{user_id:data.user_id},function(res){
					if(res.code==200){
						tableIns.reload();
					}
					layer.msg(res.msg);
				})
				layer.close(index);
			});
		}

		//批量删除
		function  batchDelete(){
			//得到选中行
			var checkStatus = table.checkStatus('driverListTable');
			var dataLength=checkStatus.data.length;
			if(dataLength>0){
				layer.confirm('你确定要删除这些司机数据吗?', {icon: 3, title:'提示'}, function(index){
					var data=checkStatus.data; //获取选中行的数据
					var ids="";
					$.each(data,function(index,item){
						if(index==0){
							ids+="ids="+item.user_id;
						}else{
							ids+="&ids="+item.user_id;
						}
					})
					$.post("/admin/driver/batchDelete",ids,function(res){
						if(res.code==200){
							tableIns.reload();
						}
						layer.msg(res.msg);
					})
					layer.close(index);
				});

			}else{
				layer.msg("请选中操作行")
			}
		}

		//弹出查看层
		function showOrder(data){
			let cHight = document.body.clientHeight - 300 + "px";
			console.log("cHight="+cHight);
			mainIndex=layer.open({
				type:1,
				content:$("#showOrderDiv"),
				area:['800px',cHight],
				title:'查看司机信息',
				success:function(){
					// $("#show_title").html(data.title);
					// $("#show_opername").html(data.opername);
					// $("#show_createtime").html(data.createtime);
					// $("#show_content").html(data.content);

					showOrderInfo(data);


				},
                cancel: function(index, layero){
                    $(":input","#showOrderDiv").not(":button",":reset",":submit").val("").removeAttr("checked").removeAttr("selected");

					layui.use(['form'],function(){
						from=layui.form;
						from.render();
					})
                    layer.close(index);
                }
            });
		}


		//弹出查看层
		function showOrderInfo(data){
			let user_id = data.user_id;
			console.log("showOrderInfo  user_id="+user_id);

			let url = "/admin/driver/goEdit?user_id="+user_id;
			$.get(url,function(res){
				if(res.code==200){
					backfillData(res.result.pd);



				}else{
					layer.msg(res.msg);
				}
			})
		}




		//修改司机服务状态状态
		function changeServersStatus(data) {
			console.log("data:"+data);
			// console.log("order_status:"+order_status);
			let url = "/admin/driver/changeServersStatus";
			$.post(url,data,function(res){
				if(res.code==200){
					tableIns.reload();
                    layer.msg(res.msg);
                }else{
                    layer.closeAll();
                    layer.msg(res.msg);
                }
			})

		}

	});

    function selectThisAution(auction_id,order_id,auction_amount,server_user_name,server_driver_phone){
        // console.log(auction_id);
        //prompt层
        let custo_costs;
        layer.prompt({title: '请输入游客需支付金额', formType: 0}, function(text, index){
            layer.close(index);
            custo_costs = text;
            //询问框
            let msgStr = '竞拍人：' + '<span style="color: #FF5722">'+ server_user_name+'</span>' +
                '<br>' +
                '竞拍人电话:' + '<span style="color: #FF5722">'+ server_driver_phone+'</span>' +
                '<br>' +
                '竞拍金额:' + '<span style="color: #FF5722">'+ auction_amount+'</span>' +
                '<br>' +
                '游客待支付金额:' +'<span style="color: #FF5722">'+ custo_costs+'</span>' +
                '<br>' +
                '是否确认提交并发送邮件通知?';

            layer.confirm(msgStr, {
                btn: ['提交','取消'] //按钮
            }, function(){
                // layer.msg('提交成功');
                let ajax_data = {
                    "auction_id":auction_id,
                    "order_id":order_id,
                    "custo_costs":custo_costs
                };
                console.log(ajax_data);
                // changeServersStatus(ajax_data);
                let url = "/admin/order/confirmAuction";
				$.post(url,ajax_data,function(res){
					if(res.code==200){
						tableIns.reload();
						layer.closeAll();
						layer.msg("提交成功");
					}else{
						layer.closeAll();
						layer.msg(res.msg);
					}
				})

            });
        });
    }


	function backfillData(obj){
		for(var key in obj ){
			if(obj.hasOwnProperty(key)){
				if($(".layui-layer-content input[type='hidden'][name='"+key+"']").length>0){
					$(".layui-layer-content input[type='hidden'][name='"+key+"']").val(obj[key]);
				}
				if($(".layui-layer-content input[type='text'][name='"+key+"']").length>0){
					$(".layui-layer-content input[type='text'][name='"+key+"']").val(obj[key]);
				}
				if($(".layui-layer-content select[name='"+key+"'").length>0){
					$(".layui-layer-content select[name='"+key+"'] option[value='"+obj[key]+"']").attr("selected","selected");
				}
				if($(".layui-layer-content input[type='checkbox'][name='"+key+"']").length>0){
					$(".layui-layer-content input[name='"+key+"'][value='"+obj[key]+"']").attr("checked","checked");
				}
				if($(".layui-layer-content input[type='radio'][name='"+key+"']").length>0){
					$(".layui-layer-content input[name='"+key+"'][value='"+obj[key]+"']").attr("checked","checked");
				}
				if($(".layui-layer-content input[type='select'][name='"+key+"']").length>0){
					$(".layui-layer-content input[name='"+key+"'][value='"+obj[key]+"']").attr("selected","selected");
				}
			}
		}
		layui.use(['form'],function(){
			from=layui.form;
			from.render();
		})
	}


</script>

</body>
</html>